package work;

import java.util.Arrays;

public class work2 {
    public static void main(String[] args) {
        work2 num = new work2();
        int[] scores={79,52,98,81};
        int count=num.sort(scores);

        System.out.println("共有"+count+"个成绩信息！");
}

        public int sort(int[] scores ) {
            Arrays.sort(scores);
            System.out.println(Arrays.toString(scores));

            return scores.length;

        }
}
